package org.jdns.jfreechess.server;

import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelOutboundByteHandlerAdapter;

public class PromptHandler extends ChannelOutboundByteHandlerAdapter {
  @Override
  public void flush(ChannelHandlerContext ctx, ChannelFuture future) throws Exception {
    ctx.nextOutboundByteBuffer().writeBytes(ctx.outboundByteBuffer());
    ctx.nextOutboundByteBuffer().writeBytes("\nfics% ".getBytes());
    ctx.flush();
  }
}
